ahrefs\AhrefsSeo_Vendor\phpseclib\Math\BigInteger D

Total Complexity 494
Dependencies 4
Dependents 7
Total lines 3,188
Lines of code 1,874
Logical lines of code 1,421
Comment lines 1,215
Methods 71
Properties 12

Methods 71

Method Rating Maintainability Complexity Lines of code
__construct()
D
17
69 212
isPrime()
D
24
41 139
divide()
C
30 24 119
toBytes()
C
38 25 56
randomPrime()
B
38 21 69
modPow()
B
34 18 82
extendedGCD()
B
37 18 74
_subtract()
B
42 16 48
_add()
A
43 14 47
_multiplyLower()
A
46 12 36
_slidingWindow()
A
44 10 43
_normalize()
A
47 10 37
_compare()
A
55 10 18
_regularMultiply()
A
48 9 32
toString()
A
48 9 32
random()
A
45 7 41
modInverse()
A
51 8 25
_barrett()
A
42 6 52
__debugInfo()
A
53 8 21
bitwise_leftRotate()
S
48 7 30
toBits()
S
56 7 15
_montgomeryMultiply()
S
49 6 28
_regularBarrett()
S
46 5 40
_reduce()
S
53 6 24
_lshift()
S
54 6 20
_baseSquare()
S
54 6 19
_base256_rshift()
S
52 5 24
_montgomery()
S
52 5 22
compare()
S
58 5 16
bitwise_xor()
S
52 4 24
bitwise_or()
S
52 4 23
bitwise_not()
S
52 4 22
bitwise_and()
S
53 4 22
bitwise_leftShift()
S
55 4 19
bitwise_rightShift()
S
55 4 19
_rshift()
S
55 4 19
_base256_lshift()
S
57 4 15
_random_number_helper()
S
57 4 15
abs()
S
59 4 14
_make_odd()
S
59 4 14
add()
S
57 3 17
subtract()
S
57 3 17
multiply()
S
57 3 17
_multiply()
S
64 4 8
_karatsuba()
S
53 2 22
_karatsubaSquare()
S
54 2 19
equals()
S
66 3 8
_trim()
S
65 3 9
__wakeup()
S
67 2 8
_array_repeat()
S
78 2 3
__sleep()
S
67 2 8
_encodeASN1Length()
S
67 2 7
_prepareReduce()
S
70 2 6
_multiplyReduce()
S
67 2 7
_square()
S
77 2 3
_squareReduce()
S
70 2 6
_divide_digit()
S
62 2 10
_safe_divide()
S
70 2 6
setPrecision()
S
62 2 10
_prepMontgomery()
S
66 1 8
__clone()
S
82 1 3
__toString()
S
82 1 3
_modInverse67108864()
S
64 1 9
bitwise_rightRotate()
S
80 1 3
gcd()
S
76 1 4
powMod()
S
80 1 3
_mod2()
S
73 1 5
toHex()
S
80 1 3
_int2bytes()
S
78 1 3
_bytes2int()
S
73 1 4
copy()
S
67 1 8